﻿// 项目：Nuctech.ACCT.OIS.Common
// 文件名称：smEventTempParamCode
// ----------------------------------------------------------------------------------------------------------------------
// 功能描述：日志模板参数代码表
// 创建者：zhangwentao
// 版本：
// 创建日期：2022-10-08 10:57
// ----------------------------------------------------------------------------------------------------------------------
// 修改者：zhangwentao
// 修改内容：
// 修改日期：2022-10-08 10:57
// ----------------------------------------------------------------------------------------------------------------------
// </summary>

namespace Nuctech.ACCT.OIS.Common
{
    public enum smEventTempParamCode : long
    {
        Begin = 0x30000000000,                                                      ///日志模板起始代码

        Begin_SMS_Service                       = Begin + 0x0100000000,             /// 管理服务日志模板起始编码
        Begin_SMS_Client                        = Begin + 0x0200000000,             /// 管理站日志代码起始编码
        Begin_SCS                               = Begin + 0x0300000000,             /// SCS日志代码起始编码
        Begin_IPS                               = Begin + 0x0400000000,             /// IPS日志代码起始编码
        Begin_RCS                               = Begin + 0x0500000000,             /// RCS日志代码起始编码
        Begin_RCC                               = Begin + 0x0600000000,             /// RCC日志代码起始编码
        Begin_RCG                               = Begin + 0x0700000000,             /// RCG日志代码起始编码
        Begin_FTS                               = Begin + 0x0800000000,             /// FTS日志代码起始编码

        /// 管理服务记录的日志参数信息

        // 通用
        SMS_Service_Common = Begin_SMS_Service + 0x001000000,

        ReconstructionService                       = SMS_Service_Common + 0x01, /// 重建服务
        StorageService                              = SMS_Service_Common + 0x02, /// 存储服务
        ScanControlService                          = SMS_Service_Common + 0x03, /// 扫描控制服务
        Process                                     = SMS_Service_Common + 0x04, /// 流程
        MotorTrolley                                = SMS_Service_Common + 0x05, /// 轨道车
        XRayGenerator                               = SMS_Service_Common + 0x06, /// X射线发生器
        Detector                                    = SMS_Service_Common + 0x07, /// 探测器
        Already                                     = SMS_Service_Common + 0x08, /// 已经
        DoNotMake                                   = SMS_Service_Common + 0x09, /// 未
        Male                                        = SMS_Service_Common + 0x0a, /// 男
        Female                                      = SMS_Service_Common + 0x0b, /// 女
        Yes                                         = SMS_Service_Common + 0x0c, /// 是
        No                                          = SMS_Service_Common + 0x0d, /// 否

        // 用户相关
        SMS_Service_User                            = Begin_SMS_Service + 0x002000000,

        UpdateUserName                              = SMS_Service_User + 0x01, /// 更新用户真实姓名
        UpdateDes                                   = SMS_Service_User + 0x02, /// 更新用户描述
        UpdateAge                                   = SMS_Service_User + 0x03, /// 更新用户姓名
        UpdatePhone                                 = SMS_Service_User + 0x04, /// 更新联系方式
        UpdateSex                                   = SMS_Service_User + 0x05, /// 更新性别
        RemoveUserGroup                             = SMS_Service_User + 0x06, /// 移出用户组
        MoveToUserGroup                             = SMS_Service_User + 0x07, /// 移入用户组


        // 用户组相关

        // 图像相关

        // 设备相关
        SMS_Service_Device = Begin_SMS_Service + 0x005000000,

        LowEnergy                                               = SMS_Service_Device + 0x01, /// 低能
        HighEnergy                                              = SMS_Service_Device + 0x02, /// 高能
        DoubleEnergy                                            = SMS_Service_Device + 0x03, /// 双能
        Background                                              = SMS_Service_Device + 0x04, /// 本底
        Air                                                     = SMS_Service_Device + 0x05, /// 空气
        PointA                                                  = SMS_Service_Device + 0x06, /// A点
        PointB                                                  = SMS_Service_Device + 0x07, /// B点=》入口对接位
        PointC                                                  = SMS_Service_Device + 0x08, /// C点=》出口对接位
        HomePoint                                               = SMS_Service_Device + 0x09, /// 原点=》旋转位
        Degree0                                                 = SMS_Service_Device + 0x0a, /// 0度
        Degree90                                                = SMS_Service_Device + 0x0b, /// 90度
        XRay1                                                   = SMS_Service_Device + 0x0c, /// X射线发生器（1号）
        XRay2                                                   = SMS_Service_Device + 0x0d, /// X射线发生器（2号）
        XRay3                                                   = SMS_Service_Device + 0x0e, /// X射线发生器（3号）
        TemporaryCount                                          = SMS_Service_Device + 0x0f, /// 临时扫描货物计数、临时嫌疑货物计数
        StandardScan                                            = SMS_Service_Device + 0x11, /// 标准扫描
        Rescan                                                  = SMS_Service_Device + 0x12, /// 重新扫描
        BoxReturn                                               = SMS_Service_Device + 0x13, /// 箱体退回
        BoxSentOut                                              = SMS_Service_Device + 0x14, /// 箱体送出
        Forward                                                 = SMS_Service_Device + 0x15, /// 正转
        Reverse                                                 = SMS_Service_Device + 0x16, /// 反转
        Stop                                                    = SMS_Service_Device + 0x17, /// 停止
        EntranceGuardDoor                                       = SMS_Service_Device + 0x18, /// 入口处防护门
        ExitDoor                                                = SMS_Service_Device + 0x19, /// 出口处防护门
        OpenTheDoor                                             = SMS_Service_Device + 0x1a, /// 开门
        CloseTheDoor                                            = SMS_Service_Device + 0x1b, /// 关门
        Run                                                     = SMS_Service_Device + 0x1c, /// 运行
        Reset                                                   = SMS_Service_Device + 0x1d, /// 复位
        EntranceDocking                                         = SMS_Service_Device + 0x1e, /// 入口对接
        EntryReset                                              = SMS_Service_Device + 0x1f, /// 入口复位
        ExportDocking                                           = SMS_Service_Device + 0x21, /// 出口对接
        ExitReset                                               = SMS_Service_Device + 0x22, /// 出口复位
        RollerServo                                             = SMS_Service_Device + 0x23, /// 滚筒伺服
        LiftServo                                               = SMS_Service_Device + 0x24, /// 升降伺服
        Start                                                   = SMS_Service_Device + 0x25, /// 开始
        Resets                                                  = SMS_Service_Device + 0x26, /// 归位
        XRay4                                                   = SMS_Service_Device + 0x27, /// X射线发生器（4号）
        Calibration                                             = SMS_Service_Device + 0x28, /// 工装标定

        // 场景状态切换相关
        SMS_Service_Scene = Begin_SMS_Service + 0x006000000,

        EmergencyStopSwitch                                    = SMS_Service_Scene + 0x01, /// 紧急停止开关
        SafetyInterlock                                        = SMS_Service_Scene + 0x02, /// 安全联锁
        SceneStageUnknown                                      = SMS_Service_Scene + 0x03, /// 未知
        SceneStageWaiting                                      = SMS_Service_Scene + 0x04, /// 空闲
        SceneStageReady                                        = SMS_Service_Scene + 0x05, /// 扫描就绪
        SceneStageNormal                                       = SMS_Service_Scene + 0x06, /// 扫描中
        SceneStageQuick                                        = SMS_Service_Scene + 0x07, /// 扫描中
        SceneStageExcp                                         = SMS_Service_Scene + 0x08, /// 扫描异常
        SceneStageCalibReady                                   = SMS_Service_Scene + 0x09, /// 标定就绪
        SceneStageCalibRuning                                  = SMS_Service_Scene + 0x0a, /// 标定运行中
        SceneStageCalibExcp                                    = SMS_Service_Scene + 0x0b, /// 标定异常
        SceneStageDiagReady                                    = SMS_Service_Scene + 0x0c, /// 诊断就绪
        SceneStageDiagRuning                                   = SMS_Service_Scene + 0x0d, /// 诊断运行中
        SceneStageDiagExcp                                     = SMS_Service_Scene + 0x0e, /// 诊断异常
        SceneStageMaintReady                                   = SMS_Service_Scene + 0x0f, /// 维护就绪
        SceneStageMaintRuning                                  = SMS_Service_Scene + 0x11, /// 正在维护
        SceneStageMaintExcp                                    = SMS_Service_Scene + 0x12, /// 维护异常
        SceneStageTest                                         = SMS_Service_Scene + 0x13, /// Test
        SceneStageExit                                         = SMS_Service_Scene + 0x14, /// 退出
        SceneStageDeviceExcp                                   = SMS_Service_Scene + 0x15, /// 设备异常
        SceneStageDeviceNotReady                               = SMS_Service_Scene + 0x16, /// 设备未就绪




        /// 管理站记录的日志参数信息

        // SMSClient通用
        SMS_Client_Common = Begin_SMS_Client + 0x001000000,

        CreateFolderFailed                              = SMS_Client_Common + 0x01, /// 无法创建文件夹
        FileWriteException                              = SMS_Client_Common + 0x02, /// 文件写入过程异常
        GetExportPathFailed                             = SMS_Client_Common + 0x03, /// 导出路径获取失败

        // 图像
        SMS_Client_Image = Begin_SMS_Client + 0x002000000,

        ImageExportAbnormal                             = SMS_Client_Image + 0x01,/// 图像导出过程异常
        ImageNotFound                                   = SMS_Client_Image + 0x02,/// 图像未找到
        ExportImageAbnormal                             = SMS_Client_Image + 0x03,/// 图像导出功能异常


        // 自动诊断
        SMS_Client_Auto_Diag_Report = Begin_SMS_Client + 0x003000000,

        ReportNotGenerated                              = SMS_Client_Auto_Diag_Report + 0x01, /// 还未生成报告

        // 系统日志
        SMS_Client_Event = Begin_SMS_Client + 0x004000000,

        CannotGetEvent                                  = SMS_Client_Event + 0x01, /// 无法获取日志

        // 数据库设置
        SMS_Client_Database = Begin_SMS_Client + 0x005000000,


        /// SCS记录的日志参数信息

        // 通用
        SCS_Common = Begin_SCS  + 0x001000000,

        //MotorTrolley                                = SCS_Common + 0x01, /// 轨道车
        //XRayGenerator                               = SCS_Common + 0x02, /// X射线发生器
        //Detector                                    = SCS_Common + 0x03, /// 探测器


        // 急停
        SCS_Emergency_Stop                          = Begin_SCS + 0x002000000,

        //EntranceOrExit                              = SCS_Emergency_Stop + 0x01, /// 出入口
        //ControlBox                                  = SCS_Emergency_Stop + 0x02, /// 控制箱
        //OperationConsole                            = SCS_Emergency_Stop + 0x03, /// 操作台
        //SmallGate                                   = SCS_Emergency_Stop + 0x04, /// 小车
        //ControlRoom                                 = SCS_Emergency_Stop + 0x05, /// 控制室
        //OnMotorTrolley                              = SCS_Emergency_Stop + 0x06, /// 轨道车
        //Modulator                                   = SCS_Emergency_Stop + 0x07, /// 调制器
        //MachineHeadOfXRayGenerator                  = SCS_Emergency_Stop + 0x08, /// X射线发生器机头

        // 安全连锁
        SCS_Safety_Interlock                        = Begin_SCS + 0x003000000,

        //InterlockKey                                = SCS_Safety_Interlock + 0x01, /// 连锁钥匙
        //LargeGateInterlock                          = SCS_Safety_Interlock + 0x02, /// 大门联锁
        //SmallGateInterlock                          = SCS_Safety_Interlock + 0x03, /// 小门联锁
        //MachineHeadGateSwitchOfXRayGenerator        = SCS_Safety_Interlock + 0x04, /// X射线发生器机头门
        //ModulatorGateSwitchOfXRayGenerator          = SCS_Safety_Interlock + 0x05, /// X射线发生器调制器门

        // 故障
        SCS_Error                                   = Begin_SCS + 0x004000000,
        
        S13011Error                                 = SCS_Error + 0x01,///S13011 非远控模式
        S14011Error                                 = SCS_Error + 0x02,///S14011 流程故障  
        S12041Error                                 = SCS_Error + 0x03,///S12041	标定工装异常
        S12072Error                                 = SCS_Error + 0x04,///S12072	出口线体异常
        S12071Error                                 = SCS_Error + 0x05,///S12071	入口线体异常
        S12082Error                                 = SCS_Error + 0x06,///S12082	出口防护门异常
        S12081Error                                 = SCS_Error + 0x07,///S12081	入口防护门异常
        S12051Error                                 = SCS_Error + 0x08,///S12051	转运台异常
        S12061Error                                 = SCS_Error + 0x09,///S12061	 轨道车异常
        S12021Error                                 = SCS_Error + 0x0a,///S12021	探测器异常
        S12031Error                                 = SCS_Error + 0x0b,///S12031	X射线发生器异常
        S12091Error                                 = SCS_Error + 0x0c,///S12091	安全联锁被触发
        S12092Error                                 = SCS_Error + 0x0d,///S12092	紧急停止开关被触发
        S12011Error                                 = SCS_Error + 0x0e,///S12011	PLC未就绪

        //Process                                     = SCS_Error + 0x01, /// 流程

        /// IPS记录的日志参数信息

        // IPS通用
        IPS_Common = Begin_IPS + 0x001000000,

        Safety                                      = IPS_Common + 0x01,                    ///安全
        Suspect                                     = IPS_Common + 0x02,                    ///嫌疑


        // 设置操作
        IPS_Judge                                   = Begin_IPS + 0x002000000,

        AutoJudge                                   = IPS_Judge + 0x01,                     ///自动判图
        ManualJudge                                 = IPS_Judge + 0x02,                     ///手动判图
        Manual                                      = IPS_Judge + 0x03,                     ///手动
        TimeoutAuto                                 = IPS_Judge + 0x04,                     ///超时自动



        /// RCS记录的日志参数信息


        /// RCC记录的日志参数信息


        /// RCG记录的日志参数信息


        /// RCG记录的日志参数信息
        FTS_ImageTransfer                           = Begin_FTS + 0x001000000,

        FileReadingFailure                          = FTS_ImageTransfer + 0x01,                    ///读取文件失败3332911398913
        FilNotExit                                  = FTS_ImageTransfer + 0x02,                    ///文件不存在3332911398914
        NetConnFailure                              = FTS_ImageTransfer + 0x03,                    ///网络连接失败3332911398915
        NetNotConnect                               = FTS_ImageTransfer + 0x04,                    ///网络未连接3332911398916
        UnknownError                                = FTS_ImageTransfer + 0x05,                    ///未知错误3332911398917


    }
}
